﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Web.Wap.Code;
using ZLCMS.Business.Util;
using ZLCMS.Commands.User.Util;

namespace ZLCMS.Web.Wap.Agent
{
    public partial class AgentList : AgentPageBase
    {
        protected string ParentAccount { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (AgentAccount == UserKit.GetUserAccount() && AuthUtil.CheckAuthorization("AGENT_MAN", "ALL", AgentAccount))
            {
                ParentAccount = "-1";
            }
            else
            {
                ParentAccount = AgentAccount;
            }
        }
    }
}